	$(function(){
	//旅游线路分类的JS	
		$(".left_first").hover(function(){
			$(this).children("div").toggle();
		})
		$(".left_firsts").hover(function(){
			$(this).children("div").toggle();
		})
	//首页中本周预定排行和最热销线路推荐切换的JS
		$(".choose_left").mouseover(function(){
			$(".right_bodycon").show();
			$(".left_bodycon").hide();
			$(".choose_right").css({"color":"black","background-image":"none"});
		})

		$(".choose_right").mouseover(function(){
			$(".right_bodycon").hide();
			$(".left_bodycon").show();
			$(this).css({"color":"red"});
			$(this).css("background-image","url(../img/reserver-bg.png)")	
			$(".choose_left").css({"background-image":"none","color":"black"});		
		})

		var time = setInterval(moves,2000);

		function moves(){
			var l =  document.getElementById("lunbo_dong").offsetLeft + 1;
			// alert(l);  
			var widths = $("#lunbo_dong img").innerWidth();
			var tot_width = $("#lunbo_dong").outerWidth();
			var left = l - widths;
			if(left <= -2188)left=0;
			$("#lunbo_dong").animate({left:left},"fast");

			var index = l/-widths+1;
			
		
			// $(".one,.two").each(function(i){
			// 	alert(i);
			// })
			

		}


		








		
	})